{% extends "templates/base.html" %}

{% block the_body %}
<h2>{{the_title}}</h2>
Search the datastore:
<p>
Let's see who likes which hobby:
</p>
<form action="/search" method="post">
    <p>
        Check the hobbies you want to search on:
        </p>
        {% for h in hobbies %}
            <input type="checkbox" name="hobbies"
                value="{{h.hobby}}">{{h.hobby}} <br />
        {% endfor %}
        <input type="submit" value="Search">
</form>
{% endblock %}
